<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>留言板</title>
<link type="text/css" href="${staticResources}/css/listcomments.css" rel="stylesheet" />
</head>
<body style=" background: url('${staticResources}/image/greenbc.gif');">
<div id="header">
  <div id="hy">
    <c:if test="${user eq null }">
    <div id="logo">欢迎光临中国药科大学二手书交易平台!请<span><a href="${contextPath }/Account/Login">登录</a></span> 免费<span><a href="${contextPath }/Account/Register">注册</a></span></div>
    </c:if>
    <c:if test="${user ne null }">
    <div id="sc">
      <ul>
        <li><a href="${contextPath }/Account/Logout">注销</a></li>
        <li><a href="${contextPath }/Me?content=201">收藏夹</a></li>
        <li><a href="${contextPath }/Me">个人中心</a></li>
        <li>欢迎你，<b>${fn:escapeXml(user.nickName) }</b>！</li>
      </ul>
    </div>
    </c:if>
   </div>
   
   <div id="top" style=" background: url('${staticResources}/image/listcommentsbc_03.gif');">
      <div class="tx">
	    <dl>
	     <c:choose>
           <c:when test="${empty user.userPicture }">
             <img src="${staticResources}/image/userpics_none.jpg" width="132" height="132" alt="">
           </c:when>
           <c:otherwise>
             <img src="${userContents}/userpics/${user.userPicture }" width="132" height="132" alt="">
           </c:otherwise>
	     </c:choose>
	    </dl>
	  </div>
	  <div class="xx">
	     <dl class="nc">${fn:escapeXml(user.nickName)}</dl>
		 <dl class="degree">活跃度：${user.activityPoint}</dl>
		 <dl class="degree">信誉度：${user.creditPoint}</dl>
		 <dl class="degree">个性签名：${fn:escapeXml(user.signature)}</dl>
	  </div>
   </div>
 </div>
   <div id="nav" style=" background: url('${staticResources}/image/listcomments_07.gif');">
    <ul>
      <li><a href="${contextPath }/Homepage">首页</a></li>
      <li><a href="${contextPath }/Books/Search">交易广场</a></li>
      <li><a href="${contextPath }/Auctions/Search">拍卖中心</a></li>
      <li><a href="#">读者推荐</a></li>
      <li><a href="${contextPath }/Comment/ListComments">留言板</a></li>
      <li><a href="#">新手指南</a></li>
    </ul>
   </div>
  
<!--头部结束-->
    <div class="main">
	    <dl class="com">留言板
	    <form method="post" action="">
	       <input type="radio" name="state" value="r1" checked/>状态筛选
	       <input type="radio" name="mineonly" value="r2" />我的留言
	       
	    </form>
	    </dl>
	    
		<dl class="jiyu">管理员寄语</dl>
		<dl class="words">欢迎大家畅所欲言！</dl>
		<dl class="botton">
		     <dd><a href="SubmitComment"><img src="${staticResources}/image/listcomments_11.gif" width="100" height="25" alt=""></a></dd>
		</dl>
		<dl class="list">
		<c:forEach var="eachComment" items="${page.records}">
		    <dd>
		    <c:choose>
             <c:when test="${empty eachComment.commentUser.userPicture }">
               <img src="${staticResources}/image/userpics_none.jpg" width="72" height="72" alt="">
             </c:when>
             <c:otherwise>
               <img src="${userContents}/userpics/${eachComment.commentUser.userPicture }" width="72" height="72" alt="">
             </c:otherwise>
		    </c:choose>
			    <span>${fn:escapeXml(eachComment.commentUser.nickName)}</span><small>${fn:escapeXml(comment.formattedCommentTime)}</small><br>
			    <b>${fn:escapeXml(eachComment.title)}</b><br>
				<small>${fn:escapeXml(eachComment.content)}</small><small><a href="ViewComment?cid=${eachComment.CID }">>>查看更多</a></small>
			</dd>
		</c:forEach>
		</dl>
	</div>
<!--中间部分结束-->
     <div class="bottom">中国药科大学版权所有</div>

<!--尾部结束-->

</body>
</html>